<div class="container" style="margin-top: 300px;">
        <ul class="nav nav-sidebar floatRight col-md-1" style="float: right;">
            <li ng-repeat="ristory in ristories"><a href="" ng-click="showProducts($index)" ng-bind="ristory.rname"></a></li>
        </ul>
        <div class="row col-md-8 col-md-offset-2">
            <table class="table table-hover">
                <tr>
                    <td>产品名</td>
                    <td>数量</td>
                    <td>单价</td>
                </tr>
                <tr ng-repeat="product in productsInView">
                    <td ng-bind="product.pname"></td>
                    <td ng-bind="product.price"></td>
                    <td ng-bind="product.num"></td>
                    <td><button type="button" class="btn btn-primary tableButton" ng-click="deleteProduct($index)">删除</button></td>
                    <td><button type="button" class="btn btn-primary tableButton" ng-click="alterProduct($index)">修改</button></td>
                </tr>     
            </table>
        </div>
        <div class="row col-md-offset-2 col-md-9" style="margin-top:100px;" >
            <form class="form-inline">
                <div class="form-group">
                    <label>产品名</label>
                    <input type="text" class="form-control" placeholder="product name" ng-model="pname">
                </div>
                <div class="form-group">
                    <label>单价</label>
                    <input type="number" class="form-control" placeholder="product price" ng-model="price">
                </div>
                <div class="form-group">
                    <label>数量</label>
                    <input type=""number"" class="form-control" placeholder="product num" ng-model="num">
                </div>
                <button type="button" class="btn btn-default" ng-click="addProduct()" ng-show="currentRistory!=-1">增加</button>
                <button type="button" class="btn btn-default" ng-click="submitAlter()">修改</button>
            </form>
        </div>
</div>